import axios from 'axios'
const service = axios.create({
  baseURL:'/',
  method:'POST',
  headers:{'Content-type':'application/json'},
  timeout:5000
})
service.interceptors.request.use(
  config=>{
    return config
  },
  error => {
    return Promise.reject(error)
  },

)

service.interceptors.response.use(
  response=>{
    return response.data
  },
  error => {
    return Promise.reject(error)
  }
)
export default service
